FROM maven:3.5.3-alpine
MAINTAINER liuchuang@csc-sz.cn

# 将私服10.28.25.211:8082的登录认证添加到镜像
COPY config.json /root/.docker/

# 替换官方软件源为阿里的
RUN sed -i 's/dl-cdn.alpinelinux.org/mirrors.aliyun.com/g' /etc/apk/repositories && \
    apk update && apk add git && \
    apk add docker && apk add libxml2-utils && \
    apk add openssh-client

ENTRYPOINT ["mvn-entrypoint.sh"]